<ng-container *ngIf="!outlet.isActivated">
    <ts-datepicker #datepickerOne="tsDatepicker" [(ngModel)]="search.params.start" [color]="global.params.color">
    </ts-datepicker>
    <ts-datepicker #datepickerTwo="tsDatepicker" [(ngModel)]="search.params.end" [color]="global.params.color">
    </ts-datepicker>
    <ts-timepicker #timepickerOne="tsTimepicker" [(ngModel)]="timeStar" [color]="global.params.color"></ts-timepicker>
    <ts-timepicker #timepickerTwo="tsTimepicker" [(ngModel)]="timeEnd" [color]="global.params.color"></ts-timepicker>


    <div class="px-5 py-2">
        <h4 style="font-size: 1.1rem;font-weight:400;" class="mt-5 mb-5 text-center">新增请假申请</h4>
        <div class="row">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">申请人</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">申请时间</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>

            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">申请部门</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">申请职位</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
        </div>
        <div class="row">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">请假日期</span>
                </div>
                <input tsToggle [bind]="datepickerOne" [target]="datepickerOne" type="text" [value]="search.params.start" class="form-control bg pointer" placeholder="开始日期" readonly>
                <div class="input-group-prepend input-group-append">
                    <span class="input-group-text bg border-0">到</span>
                </div>
                <input tsToggle [bind]="datepickerTwo" [target]="datepickerTwo" type="text" [value]="search.params.end" class="form-control bg pointer" placeholder="结束日期" readonly>
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">请假时长</span>
                </div>
                <input tsToggle [bind]="timepickerOne" [target]="timepickerOne" type="text" [value]="timeStar" class="form-control bg pointer" placeholder="开始时间" readonly>
                <div class="input-group-prepend input-group-append">
                    <span class="input-group-text bg border-0">到</span>
                </div>
                <input tsToggle [bind]="timepickerTwo" [target]="timepickerTwo" type="text" [value]="timeEnd" class="form-control bg pointer" placeholder="结束时间" readonly>
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">请假天数</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">请假时长</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
        </div>
        <div class="row">
            <div class="input-group mb-3 col-sm-3">
                <div class="input-group-prepend" style="align-items: self-start;">
                    <span class="input-group-text bg border-0">请假原因</span></div>
                <textarea class="form-control" placeholder="请输入备注内容"></textarea>
            </div>
            <div class="input-group mb-3 col-sm-3">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">请假类型</span></div>
                <div class="border-l-0 border-r-0 radius-0 border-t-0 form-control p-0">
                    <select [(ngModel)]="goods.goodsParentType" class="bg custom-select border-0" title="请选择路线编码">
      <option *ngFor="let type of parentTypes" [ngValue]="type.value">{{type.text}}</option>
    </select>
                </div>
                <div class="input-group mb-3">
                    <div class="input-group-prepend">
                        <span class="input-group-text bg border-0">审核人员</span>
                    </div>
                    <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
                </div>
            </div>

        </div>
    </div>
    <div class="my-5 m-btn text-right pr-5">
        <button routerLink="/business/att-leave" tsBtn color="white">返回列表</button>
        <button *ngIf="goods.id===0" tsBtn loading color="success" (submit)="confirmInsert($event)">确定</button>
        <button routerLink="/business/att-leave" tsBtn color="danger">取消</button>
        <!-- <button tsBtn color="success" (click)="resetForm()">新增</button> -->
        <!-- <button tsBtn color="warning" (click)="resetForm()">打印</button>
        <button tsBtn loading color="primary" (submit)="confirmUpdate($event)">分享</button> -->
    </div>
</ng-container>

<router-outlet #outlet="outlet"></router-outlet>